﻿<h2>{{car.year}} {{car.make}}</h2>
<h3>{{car.model}}</h3>
<img ng-hide="editing" ng-src="{{car.image}}" /> <br />
<p ng-hide="editing">{{car.problem}}</p>
<div class="form-group">
    <input ng-show="editing" type="text" ng-model="car.image" placeholder="image" /> 
    <input ng-show="editing" type="text" ng-model="car.problem" placeholder="Enter Problem" />
   
    <button class="form-inline btn btn-default" ng-click="prev()">Back</button>
    <button class="form-inline btn btn-default" ng-click="next()">Next</button>
    <button ng-hide="editing" class="form-control btn btn-info" ng-click="editing='true'">Edit</button>
    <button ng-show="editing" class="form-control btn btn-success" ng-click="editing='false'">Save</button>
</div>
{{car}}